#ifndef __ROUTER_SERVER_WORKER_H__
#define __ROUTER_SERVER_WORKER_H__

void read_cb(poll_event_t *poll_event, poll_event_element_t *node, struct epoll_event ev);

void printf_msg(char *data, int length);

void close_cb(poll_event_t *poll_event, poll_event_element_t *node, struct epoll_event ev);

void accept_cb(poll_event_t *poll_event, poll_event_element_t *node, struct epoll_event ev);

int timeout_cb(poll_event_t *poll_event);

void *router_server();

void set_reuseport(int sockfd);

#endif